package com.tspark.tspark1.zoo.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 限定登录/注册时传输的JSON数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDTO {
    private int id;//这里的id用于注册后返回
    private String username;
    private String password;

    @Override
    public String toString() {
        return "LoginDTO{" +
                "username='" + username + '\'' +
                '}';
    }
}
